package io.github.jsp.service;

import io.github.jsp.model.JobLog;
import java.util.List;

public interface JobLogService {
    
    JobLog getById(Long id);
    
    List<JobLog> getByJobId(Integer jobId);
    
    List<JobLog> getWithPage(int page, int size);
    
    int getTotalCount();
    
    List<JobLog> getByJobIdWithPage(Integer jobId, int page, int size);
    
    int getCountByJobId(Integer jobId);
    
    Long insert(JobLog jobLog);
    
    int updateHandleInfo(JobLog jobLog);
    
    int deleteById(Long id);
    
    int deleteByJobId(Integer jobId);
    
    int clearOldLogs(int days);
}